package snippet;

import java.util.Arrays;

public class T292 {
	public static void main(String[] args) {
		int[] a= {1,4,3,2};
		System.out.println(new T292().reverseWords("Let's take LeetCode contest"));
	}
	 public String reverseWords(String s) {
		 
		return s;
	        
	    }
	 public int arrayPairSum(int[] nums) {
		 Arrays.sort(nums);
		 int sum=0;
		 for (int i = 0; i < nums.length; i++) {
			if(i%2==0) {
				sum+=nums[i];
			}
		}
		return sum;
	        
	    }
	  public int fib(int N) {
	        if(N<1) {
	        	return 0;
	        }
	        if(N==1) {
	        	return 1;
	        }
	        return fib(N-1)+fib(N-2);
	  }
	public boolean canWinNim(int n) {
		n=n%4+4;
		int i = 0;
		while (n>0) {
			int t = n%4;
			if (t==0) {
				n-= 2;
			} else   {
				n-= t;
			}
			//System.out.println(i+" "+t+"  "+n);
			i++;
		}

		return (i-1) % 2 == 0;
	}
}
